package com.glorysoft.sunnypda.entity.net;

import com.glorysoft.sunnypda.base.Constant;
import com.pda.platform.ui.ui_pdaplatform.utils_public.FreeApi_DateUtils;

import java.io.Serializable;

/**
 * @author Hx
 * @date 2020/1/31
 * @desc 网络请求/回复header
 */

public class HeaderBean implements Serializable {

    private String REQUESTSOURCE;

    private String APINAME;

    private String TRANSACTIONID;

    private String EVENTTIME;

    private String USERNAME;

    private String RESULT;

    private int CODE;

    private String MESSAGE;


    public HeaderBean(String MessageName) {
        this.APINAME = MessageName;
        this.REQUESTSOURCE = Constant.Companion.getIMEI_ID() +":"+Constant.Companion.getIP_ADDRESS();
        this.TRANSACTIONID = "1b9bc58c-5cd4-4932-8a12-4543fe026893";
        this.USERNAME = Constant.Companion.getCURRENT_USER();
        this.EVENTTIME = FreeApi_DateUtils.getNowStringDate("yyyyMMddHHmmssSSS");
    }

    public HeaderBean() {
    }

    public String getRESULT() {
        return RESULT == null ? "" : RESULT;
    }

    public void setRESULT(String RESULT) {
        this.RESULT = RESULT;
    }

    public String getTRANSACTIONID() {
        return TRANSACTIONID == null ? "" : TRANSACTIONID;
    }

    public void setTRANSACTIONID(String TRANSACTIONID) {
        this.TRANSACTIONID = TRANSACTIONID;
    }

    public String getUSERNAME() {
        return USERNAME == null ? "" : USERNAME;
    }

    public void setUSERNAME(String USERNAME) {
        this.USERNAME = USERNAME;
    }

    public int getCODE() {
        return CODE;
    }

    public void setCODE(int CODE) {
        this.CODE = CODE;
    }

    public String getMESSAGE() {
        return MESSAGE == null ? "" : MESSAGE;
    }

    public void setMESSAGE(String MESSAGE) {
        this.MESSAGE = MESSAGE;
    }
}
